package com.thghh.fsbrowser.fs;

public interface FilenameFilter {
	/**
	 * Tests if a specified file should be included in a file list.
	 *
	 * @param dir
	 *            the directory in which the file was found.
	 * @param name
	 *            the name of the file.
	 * @return <code>true</code> if and only if the name should be included in
	 *         the file list; <code>false</code> otherwise.
	 */
	boolean accept(FilePath dir, String name);
}
